package com.carbon.notice.service.impl;

import com.carbon.notice.entity.CarbonnewsInfo;
import com.carbon.notice.mapper.CarbonnewsInfoMapper;
import com.carbon.notice.service.ICarbonnewsInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 碳资讯信息 服务实现类
 * </p>
 *
 * @author jobob
 * @since 2021-06-29
 */
@Service
public class CarbonnewsInfoServiceImpl extends ServiceImpl<CarbonnewsInfoMapper, CarbonnewsInfo> implements ICarbonnewsInfoService {

    @Resource
    private CarbonnewsInfoMapper carbonnewsInfoMapper;

    @Override
    public int insert(CarbonnewsInfo carbonnewsInfo) {
        return carbonnewsInfoMapper.insert(carbonnewsInfo);
    }

    @Override
    public List<CarbonnewsInfo> queryPage(CarbonnewsInfo carbonnewsInfo) {
        return carbonnewsInfoMapper.queryPage(carbonnewsInfo);
    }
}
